import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)


let routes = [
  {
    path: '/',
    name: 'judeg',//乘车码
    component: resolve => require(['views/judeg'], resolve)
  }, {
    path: '/home',
    name: 'home',
    component: resolve => require(['views/home'], resolve)
  }, {
    path: '/wallet',//开通钱包
    name: 'wallet',
    component: resolve => require(['views/wallet'], resolve)
  }, {
    path: '/list',
    name: 'list',
    component: resolve => require(['views/list'], resolve)
  }, {
    path: '/serviceSet',//暂停服务
    name: 'serviceSet',
    component: resolve => require(['views/serviceSet'], resolve)
  }, {
    path: '/log',//乘车记录
    name: 'log',
    component: resolve => require(['views/log'], resolve)
  }, {
    path: '/closeService',//是否关闭二维码乘车
    name: 'closeService',
    component: resolve => require(['views/closeService'], resolve)
  }, {
    path: '/orderList',//乘车订单
    name: 'orderList',
    component: resolve => require(['views/orderList'], resolve)
  }, {
    path: '/line',//支持线路 要改
    name: 'line',
    component: resolve => require(['views/line'], resolve)
  }, {
    path: '/cardBox',//卡包 要改
    name: 'cardBox',
    component: resolve => require(['views/cardBox'], resolve)
  }, {
    path: '/orderDetail',//订单详情
    name: 'orderDetail',
    component: resolve => require(['views/orderDetail'], resolve)
  }, {
    path: '/success',//开通乘车  要改
    name: 'success',
    component: resolve => require(['views/success'], resolve)
  }, {
    path: '/busCode',//更多服务
    name: 'busCode',
    component: resolve => require(['views/busCode'], resolve)
  }, {
    path: '/authTip',
    name: 'authTip',//授权提示
    component: resolve => require(['views/authTip'], resolve)
  }, {
    path: '/auth',
    name: 'auth',//授权免密
    component: resolve => require(['views/auth'], resolve)
  }, {
    path: '/busword',
    name: 'busword',//乘车码
    component: resolve => require(['views/busword'], resolve)
  }, {
    path: '/help',
    name: 'help',//使用帮助
    component: resolve => require(['views/help'], resolve)
  }, {
    path: '/suspendone',
    name: 'suspendone',//暂停跳转
    component: resolve => require(['views/suspendone'], resolve)
  }, {
    path: '/suspendtwo',
    name: 'suspendtwo',//启动跳转
    component: resolve => require(['views/suspendtwo'], resolve)
  },
];
let router = new Router({
  routes
})

export default router